OpenAsync: function(type, timestamp, totalSecondsToStayOpen, inhibitorObjectPaths, callback) {
this._totalSecondsToStayOpen = totalSecondsToStayOpen;
this._inhibitors = [];
- this._applicationList.remove_all();
+ this._applicationList.destroy_children();
this._type = type;
if (!(this._type in DialogContent))
else
this.actor.set_skip_paint(this._box, false);
- this._box.remove_all();
+ this._box.destroy_children();
for (let i = 0; i < this._workspaces.length; i++) {
let actor = new St.Button({ style_class: 'workspace-indicator',
track_hover: true });
GList *children;
ClutterActor *first_child;
ClutterActor *last_child;
+ gboolean block_update_pseude_classes;
};
static void clutter_container_iface_init (ClutterContainerIface *iface);
ClutterActor *first_child, *last_child;
StContainerPrivate *priv = container->priv;
+ if (priv->block_update_pseude_classes)
+ return;
+
first_item = priv->children;
first_child = first_item ? first_item->data : NULL;
if (first_child != priv->first_child)
}
}
-/**
- * st_container_remove_all:
- * @container: An #StContainer
- *
- * Removes all child actors from @container.
- */
-void
-st_container_remove_all (StContainer *container)
-{
- StContainerPrivate *priv = container->priv;
-
- /* copied from clutter_group_remove_all() */
- while (priv->children)
- {
- ClutterActor *child = priv->children->data;
- priv->children = priv->children->next;
-
- clutter_container_remove_actor (CLUTTER_CONTAINER (container), child);
- }
- st_container_update_pseudo_classes (container);
-}
-
/**
* st_container_destroy_children:
* @container: An #StContainer
{
StContainerPrivate *priv = container->priv;
+ priv->block_update_pseude_classes = TRUE;
+
while (priv->children)
- {
- ClutterActor *child = priv->children->data;
- priv->children = priv->children->next;
+ clutter_actor_destroy (priv->children->data);
- clutter_actor_destroy (child);
- }
+ priv->block_update_pseude_classes = FALSE;
+
+ st_container_update_pseudo_classes (container);
}
void